html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font: 16px/1.5 Arial, sans-serif;
}

code {
  background: #fafafa;
  border-radius: 5px;
  min-width: 1em;
  display: inline-block;
  text-align: center;
  padding: .1em .3em;
}

input[type=button] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  font-size: 1em;
  background: #fafafa;
  border: 1px solid #999;
  border-radius: .3em;
  cursor: pointer;
}

input[type=button]:hover {
  background: -webkit-linear-gradient(#fff, #dfdfdf);
  background: -moz-linear-gradient(#fff, #dfdfdf);
  background: -ms-linear-gradient(#fff, #dfdfdf);
  background: -o-linear-gradient(#fff, #dfdfdf);
  background: linear-gradient(#fff, #dfdfdf);
}

input[type=button]:active {
  background: -webkit-linear-gradient(#dfdfdf, #fff);
  background: -moz-linear-gradient(#dfdfdf, #fff);
  background: -ms-linear-gradient(#dfdfdf, #fff);
  background: -o-linear-gradient(#dfdfdf, #fff);
  background: linear-gradient(#dfdfdf, #fff);
}


input[type=range] {
  width: 50%;
  box-sizing: border-box;
  margin: 15px;
}


.viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-perspective: 400px;
  -moz-perspective: 400px;
  -ms-perspective: 400px;
  -o-perspective: 400px;
  perspective: 400px;
  -webkit-transform: translateZ(-99999px);
  -moz-transform: translateZ(-99999px);
  -ms-transform: translateZ(-99999px);
  -o-transform: translateZ(-99999px);
  transform: translateZ(-99999px);
}

.world {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -ms-perspective: inherit;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 120px;
  display: inline-block;
  background: #5CD6BA;
  border: 1px solid;
  border-radius: 5px;
  box-sizing: border-box;
  padding-top: 25px;
  font-family: sans-serif;
  font-size: 3em;
  color: white;
  opacity: .7;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
  text-align: center;
}

.name {
  font-size: .2em;
}

.controls {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 1.4em;
}

.controls-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  background: rgba(255,255,255,.9);
  width: 100%;
  z-index: 0;
}
.controls-content {
  position:relative;
  padding: 15px;
}

.ball {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 0;
  top: 0;
  border-radius: 50%;
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  background: -webkit-radial-gradient(40px 40px, circle, #D7E7F1 0%, #AFD3EE 10%, #6DA9D5 20%, #238FE2 30%, #2081CB 50%, #0E5D99 70%);
  background: -moz-radial-gradient(40px 40px, circle, #D7E7F1 0%, #AFD3EE 10%, #6DA9D5 20%, #238FE2 30%, #2081CB 50%, #0E5D99 70%);
  background: -ms-radial-gradient(40px 40px, circle, #D7E7F1 0%, #AFD3EE 10%, #6DA9D5 20%, #238FE2 30%, #2081CB 50%, #0E5D99 70%);
  background: -o-radial-gradient(40px 40px, circle, #D7E7F1 0%, #AFD3EE 10%, #6DA9D5 20%, #238FE2 30%, #2081CB 50%, #0E5D99 70%);
  background: radial-gradient(40px 40px, circle, #D7E7F1 0%, #AFD3EE 10%, #6DA9D5 20%, #238FE2 30%, #2081CB 50%, #0E5D99 70%);
  border: none;
}
.block {
  width: 200px;
  height: 200px;
  background: rgb(70,120,255);
}
